import request from "@/utils/request";

export function create(data) {
  return request({
    url: "api/v1/ElnAppVersion/Create",
    method: "post",
    data,
  });
}

export function deleteVersion(data) {
  return request({
    url: "api/v1/ElnAppVersion/Delete",
    method: "delete",
    data,
  });
}

export function update(data) {
  return request({
    url: "api/v1/ElnAppVersion/Update",
    method: "post",
    data,
  });
}

export function getList(data, pagination) {
  if (pagination) {
    data["pageIndex"] = pagination.pageIndex;
    data["pageSize"] = pagination.pageSize;
  }
  return request({
    url: "api/v1/ElnAppVersion/GetList",
    method: "get",
    params: data,
  });
}
export function get(data) {
  return request({
    url: "api/v1/ElnAppVersion/Get",
    method: "get",
    params: data,
  });
}
